//logs.js

const app = getApp();

Page({
  data: {
    disabled: false,
    alllabelList:[]
  },
  initCategoryList:function(){
  	let that = this;
    let url = app.globalData.url;
    let header = { 'content-type': 'application/json' };
     app.globalData.post(url+'/apiservice/sku/v1/getAppAllCategoryList',header).then( (res)=>{
        console.log(res);//正确返回结果
        that.setData({
          alllabelList:res
        })
     } ).catch( (errMsg)=>{
        console.log(errMsg);//错误提示信息
     } );
  },
  onLoad: function () {
    this.initCategoryList()
  }
})
